package org.gdpu.service;

import org.gdpu.base.DAO;
import org.gdpu.model.Subject;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-6-5
 * Time: 下午9:05
 * To change this template use File | Settings | File Templates.
 */
public interface SubjectService extends DAO {
    /**
     * 查找课程
     * @param subjectName  课程名称
     * @return  课程信息
     */
    Subject findSubjectBySubjectName(String subjectName);

    /**
     * 所有课程
     * @return
     */
    List<Subject> allSubject();
}
